import React from 'react';
import {Spin} from 'antd';

const Loading = props => {
    const {loading, children, ...restProps} = props;
    return (
        <Spin {...restProps} spinning={loading}>
            {children}
        </Spin>
    );
};

export default Loading;
